// Copyright 2021 Guoyoko. All Rights Reserved.

#pragma once

#include "CoreMinimal.h"
#include "Slate/SSWPropertyRowBaseWidget.h"


class SSWPropertyTextWidget : public SSWPropertyRowBaseWidget
{

public:
	SLATE_BEGIN_ARGS(SSWPropertyTextWidget) {}

	SLATE_ARGUMENT(FName, NodeName)

	SLATE_END_ARGS()

	void Construct(const FArguments& InArgs, class FSWBaseProperty* InBaseProperty);

private:
	FText GetEditableText() const;
	void OnEditableTextCommited(const FText& InText, ETextCommit::Type InCommitType);

private:
	FString ValueText;

};